﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace Project.View
{
    public partial class VakPanel : Panel
    {
        private Color color;

        public VakPanel(Color color)
            : base()
        {
            this.color = color;
            this.Width = 60;
            this.Height = 60;
            this.BackColor = System.Drawing.Color.Transparent;
            this.DoubleBuffered = true;
        }

        // OnPaint Override
        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);
            Pen pen = new Pen(this.color, 1);
            e.Graphics.DrawEllipse(pen, 5, 5, 50, 50);
        }
    }
}
